package com.sun.androidexerciseproject.widget.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

/**
 * Created by Steven on 2016/12/27 0027.
 */

public abstract class BaseFragmentActivity extends FragmentActivity {
    protected abstract void initView();

    protected abstract int getLayoutId();

    protected abstract void initData();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        initView();
        initData();
    }
}
